@extends('Home.layout.layout_one')

      
 @section('page')
      <!-- 标题 -->
          <!-- 标题 -->
      <div class="col-xs-6" style=" height:800px">
          <div class="row" >
          <div class="col-md-6 col-lg-offset-1">
             <h4 style="color:black;"> <b>|&nbsp;&nbsp;&nbsp;{{$name->name}}</b></h4>
             <hr>
          </div>
         
@foreach($page as $k=>$v)
@if($v->status ==1)

            <div class="row">
                <div class="col-md-10 col-md-offset-1">
                   <a href="{{url('/homes/cont/show',['id'=>$v->id,'ids'=>$mess->id])}}" ><h4 style="color:black;"> <b >{{$v->title}}</b></h4></a>
                </div>
                <div class="col-md-12 col-lg-offset-1">
                    <h5><span>发布时间:{{date('Y-m-d H:i:s',$v->time)}}&nbsp;&nbsp;| <span>作者:{{$v->author}}</span>&nbsp;&nbsp;| <span>原作者:{{$v->pauthor}}</span>  </span></h5>
                </div>

                <div class="col-md-10 col-lg-offset-1">
                    <img src='{{url("$v->pic")}}'' width="260px" height="140px">
                   <a href="{{url('/homes/cont/show',['id'=>$v->id,'ids'=>$mess->id])}}" style="color:black;"> <h5>{!! $v->cont !!}</h5></a>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <hr>
@endif
@endforeach
          </div>
        
      </div>
      <div class="col-xs-1 " style=" height:800px">
        <div class="row">
            <div class="col-xs-12" style="  background:#66cccc; margin-top:5px;">
                <a style="color:black" href="{{url('/homes/ask')}}">
                <img src="{{asset('/public/home/background/1.png')}}" width="50px">
                <b>我要求助</b></a>

            </div>

            <div class="col-xs-12" style="  background:#66cccc;margin-top:5px;">
                <a style="color:black"  href="{{url('/homes/useradd')}}">
                <img src="{{asset('/public/home/background/2.png')}}" width="50px">
                <b>我要参与</b></a>
            </div>
            <div class="col-xs-12" style="  background:#66cccc;margin-top:5px;">
                <a style="color:black"  href="{{url('/homes/care/care')}}">
                <img src="{{asset('/public/home/background/3.png')}}" width="50px">
            <b>我要捐款</b></a>
            </div>
         </div>   
          </div>
    
        <!-- 文章内容 -->
     </div>
      <center>
        {!! $page->render() !!}
      </center>
  </div>
@endsection